package net.pimpas.validation.message.impl;

import net.pimpas.validation.ValidationType;
import net.pimpas.validation.message.ValidationMessage;

public class DefaultValidationMessage implements ValidationMessage {
	
	private static final long serialVersionUID = -7079348909557000169L;
	
	private String message;
	private ValidationType type;
	
	public DefaultValidationMessage(String message, ValidationType type) {
		this.setMessage(message);
		this.setType(type);
	}

	public String getMessage() {
		return this.message;
	}

	public ValidationType getType() {
		return this.type;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void setType(ValidationType type) {
		this.type = type;
	}
	
	@Override
	public String toString() {
		return "["+this.getType()+"] Message: "+this.getMessage();
	}
}